package com.csair.seam.domain.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.csair.seam.domain.model.entity.Equip;
import com.csair.seam.domain.model.entity.FaMatch;
import com.csair.seam.domain.model.entity.FaMatchDetail;
import com.csair.seam.domain.model.entity.FaMatchRatio;
import com.csair.seam.domain.model.param.FaMatchParam;

public interface FaMatchMapper extends BaseMapper<FaMatch> {
	List<Equip> findFaEquipList();
	
	int deleteAllData();
	
	Page<FaMatchDetail> findFaMatchDetail(Page<FaMatchDetail> page,@Param("params")FaMatchParam param);
	
	List<FaMatchDetail> findFaMatchDetail(@Param("params")FaMatchParam param);
	
	FaMatchRatio findPieChartData(String match);
	
	List<FaMatchRatio> findHistogramByOrg();
	
	List<FaMatchRatio> findHistogramByDept(String orgId);
	
	List<FaMatchRatio> findHistogramByStatus();
	
}
